package cn.echo.modules.app.controller;


import cn.echo.modules.app.entity.User;
import org.omg.CORBA.Request;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

import static javafx.scene.input.KeyCode.R;

@RestController
public class LoginController {
    @RequestMapping(value="login1",method = RequestMethod.GET)
    public Map<String,Object> login1(){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("msg","登陆成功了");
        map.put("code","200");
        return map;
    }
    @RequestMapping(value="login2",method = RequestMethod.GET)
    public Map<String,Object> login2(String useranme){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("msg","登陆成功了");
        map.put("code","200");
        return map;
    }
    @RequestMapping(value="login3",method = RequestMethod.POST)
    public Map<String,Object> login3(@RequestBody  User user){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("msg","登陆成功了");
        map.put("code","200");
        return map;
    }

}
